package net.aynt.core.util.web;

/**
 * 文件存储服务
 */
public class QiNiuStorageService extends QiNiuStorage {

	public final static QiNiuStorageService IMAGE = new QiNiuStorageService("images");
	public final static QiNiuStorageService ATTACH = new QiNiuStorageService("attaches");
	
	private String file_path;
	private String read_path;
	
	public QiNiuStorageService(String ext){
		this.file_path = "uploads/" + ext + "/";
		this.read_path = "http://img.aynt.net/uploads/" + ext + "/";
	}
	
	@Override
	public String getBasePath() {
		return file_path;
	}
	
	public String getReadPath() {
		return read_path;
	}
}
